/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * V1Modif.java
 *
 * Created on 14-may-2012, 12:44:25
 */
package practtica4;

/**
 *
 * @author usuario_local
 */
public class V1Modif extends javax.swing.JFrame {

    /** Creates new form V1Modif */
    public V1Modif() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        botonPersonaje = new javax.swing.JButton();
        botonColectivo = new javax.swing.JButton();
        botonAcontecimiento = new javax.swing.JButton();
        botonDocumento = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        botonPersonaje.setText("Personaje");
        botonPersonaje.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonPersonajeMouseClicked(evt);
            }
        });

        botonColectivo.setText("Colectivo");
        botonColectivo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonColectivoMouseClicked(evt);
            }
        });

        botonAcontecimiento.setText("Acontecimineto");
        botonAcontecimiento.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonAcontecimientoMouseClicked(evt);
            }
        });

        botonDocumento.setText("Documento");
        botonDocumento.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonDocumentoMouseClicked(evt);
            }
        });

        jLabel1.setText("¿Qué desea modificar?");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(132, 132, 132)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(botonAcontecimiento, javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(botonDocumento))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(149, 149, 149)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(botonColectivo)
                            .addComponent(botonPersonaje))))
                .addContainerGap(136, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(botonPersonaje)
                .addGap(18, 18, 18)
                .addComponent(botonColectivo)
                .addGap(18, 18, 18)
                .addComponent(botonAcontecimiento)
                .addGap(18, 18, 18)
                .addComponent(botonDocumento)
                .addContainerGap(94, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botonPersonajeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonPersonajeMouseClicked
        // TODO add your handling code here:
         V1ModPerso v1modperso= new V1ModPerso();
        v1modperso.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_botonPersonajeMouseClicked

    private void botonColectivoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonColectivoMouseClicked
        // TODO add your handling code here:
        V1ModColectivo v1modcol= new V1ModColectivo();
        v1modcol.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_botonColectivoMouseClicked

    private void botonAcontecimientoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonAcontecimientoMouseClicked
        // TODO add your handling code here:
        
        V1ModAcon v1modacon= new V1ModAcon();
    v1modacon.setVisible(true);
    this.dispose();

    }//GEN-LAST:event_botonAcontecimientoMouseClicked

    private void botonDocumentoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonDocumentoMouseClicked
        // TODO add your handling code here:
        V1ModDoc v1moddoc= new V1ModDoc();
    v1moddoc.setVisible(true);
    this.dispose();
    }//GEN-LAST:event_botonDocumentoMouseClicked

   
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(V1Modif.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(V1Modif.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(V1Modif.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(V1Modif.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new V1Modif().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonAcontecimiento;
    private javax.swing.JButton botonColectivo;
    private javax.swing.JButton botonDocumento;
    private javax.swing.JButton botonPersonaje;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
